home *** CD-ROM | disk | FTP | other *** search
/ Into His Marvelous Light / Into His Marvelous LIGHT.iso / lesson1.dxr / 00275_Script_Play Done < prev    next >
Text File  |  2001-09-05  |  1KB  |  50 lines

  1. -- DESCRIPTION --
  2.  
  3. on getBehaviorDescription me
  4.   return "¼
  5. PLAY DONE"&RETURN&RETURN&"¼
  6. Use this behavior to end a sequence and to return the playback head to ¼
  7. where the most recent 'Play' command was issued."&RETURN&RETURN&"¼
  8. If you drop it onto a graphic member, the 'play done' command ¼
  9. is sent when the user clicks on the sprite (on mouseUp)."&RETURN&RETURN&"¼
  10. If you drop it onto the Stage or the Script Channel of the Score, ¼
  11. it will be sent when the playback head leaves the frame (on exitFrame)."¼
  12. &RETURN&RETURN&"¼
  13. PARAMETERS: None"&RETURN&RETURN&"¼
  14. ASSOCIATED BEHAVIORS:"&RETURN&"¼
  15. + Play Frame X"&RETURN&"¼
  16. + Play Movie X"
  17. end getBehaviorDescription
  18.  
  19. on getBehaviorTooltip me
  20.   return "¼
  21. Use with graphic members or as a frame behavior."&RETURN&RETURN&"¼
  22. Returns the playback head to the frame where the"&RETURN&"¼
  23. most recent 'play' command was issued.   Acts on"&RETURN&"¼
  24. mouseUp or on exitFrame, depending on whether"&RETURN&"¼
  25. you drag it to a sprite or to the Stage."
  26. end getBehaviorTooltip
  27.  
  28.  
  29.  
  30. -- HISTORY --
  31.  
  32. -- 3 November 1998, written for the D7 Behaviors Palette by James Newton
  33.  
  34.  
  35.  
  36. -- EVENT HANDLERS --
  37.  
  38. on mouseUp me
  39.   -- The user clicked on a sprite
  40.   play done
  41. end mouseUp
  42.  
  43.  
  44. on exitFrame me
  45.   if the currentSpriteNum = 0 then
  46.     -- The behavior is attached to a frame
  47.     play done
  48.   end if
  49. end exitFrame